package com._520it.crm.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com._520it.crm.domain.Temporary;
import com._520it.crm.mapper.TemporaryMapper;
import com._520it.crm.service.ITemporaryService;
@Service
public class  TemporaryServiceImpl implements ITemporaryService{
	@Autowired
	private TemporaryMapper mapper;
	@Override
	public int deleteByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return mapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Temporary record) {
		// TODO Auto-generated method stub
		return mapper.insert(record);
	}

	@Override
	public Temporary selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return mapper.selectByPrimaryKey(id);
	}

	@Override
	public List<Temporary> selectAll() {
		// TODO Auto-generated method stub
		return mapper.selectAll();
	}

	@Override
	public int updateByPrimaryKey(Temporary record) {
		// TODO Auto-generated method stub
		return mapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Temporary> selectPage(int current, int size, Long acceptId, Long productId,String applyNum, String clientEleName, Date beginDate, Date endDate, String plateNum) {
		return mapper.selectPage(current,size,acceptId,productId,applyNum,clientEleName,beginDate,endDate,plateNum);
	}

	@Override
	public int selectPageCount(int current, int size, Long acceptId, Long productId,String applyNum, String clientEleName, Date beginDate, Date endDate, String plateNum){
		return mapper.selectPageCount(current,size,acceptId,productId,applyNum,clientEleName,beginDate,endDate,plateNum);
	}

}
